<?php
require_once('includes/common.php');

$result = fetchAll('users','','','LIMIT 0,4');

//while($ans = mysql_fetch_assoc($result)){
  ////pr($ans);
//}
?>
 <link href="./css/bootstrap.css" rel="stylesheet"/>

<form class="form-search">
  <div class="input-append">
    <input type="text" style="height:30px;width:200px;" class="span2 search-query">
    <button type="submit" class="btn">Search</button>
  </div>
</form>


 <table class="table table-hover">
    <thead>
      <tr>
        <th>id</th>
        <th><i class="icon-arrow-up"></i><i class="icon-arrow-down"></i>uname</th>
        <th>email</th>
        <th>avatar</th>
        <th>added_date</th>
        <th>status</th>
        <th>Options</th>
      </tr>
    </thead>
    <tbody>
 <?php
while($ans = mysql_fetch_assoc($result)){
?>
      <tr>
        <td><?=$ans['id']?></td>
        <td><?=$ans['uname']?></td>
        <td><?=$ans['email']?></td>
        <td><?=$ans['avatar']?></td>
        <td><?=$ans['added_date']?></td>
        <td>status</td>
        <td><i class="icon-edit"></i><i class="icon-trash"></i></td>
      </tr>
<?php
}
?>
    </tbody>
   <tr>
     <td></td>
   </tr>
 </table>

<div class="pagination pagination-large pagination-centered">
  <ul>
    <li><a href="#"> Prev</a></li>
    <li><a href="#">1</a></li>
    <li><a href="#">2</a></li>
    <li><a href="#">3</a></li>
    <li><a href="#">4</a></li>
    <li><a href="#">5</a></li>
    <li><a href="#"> Next </a></li>
  </ul>
 </div>
